package com.chujian.dao;

import java.util.List;

import com.chujian.model.Order;

/**
 * 
 * @author  
 *  
 *
 */
public interface OrderDao {
	public boolean addOrder(Order order);   //添加订单
	public boolean deleteOrder(String orderId);//删除订单
	public boolean updateOrder(Order order);//更新订单
	public boolean updateTotalPrice(String orderId,float orderPrice);//更新订单总价
	public boolean cancelOrder(String orderId);//取消订单
	public boolean cancelRequestFlag(String orderId);//订单取消请求标记
	public boolean setOrderGone(String orderId,int orderStatus);//修改订单状态
	public boolean modifyTable(String orderId,String tableName);//修改餐桌
	public List<Order> qeuryAll();//查询所有订单
	public Order qeuryByOrderId(String orderId);//查询订单
	public List<Order> qeuryByTableName(String tableName);//查询订单
	public List<Order> qeuryByUserPhone(String userPhone);//查询订单
	public List<Order> qeuryByOrderStatus(int orderStatus);//查询订单
	public List<Order> qeuryByPhoneAndStatus(String userPhone,int orderStatus);//查询订单
	public List<Order> qeuryByTime(long startTime,long endTime);
}
